<template>
  <div class="flex flex-row h-1/1">
    <div class="w-[250px]">
      <DirTree @change="getDirID"></DirTree>
    </div>
    <File :pid="pid" v-bind="$attrs"></File>
  </div>
</template>

<script setup lang="ts">
import DirTree from "./DirTree/index.vue";
import File from "./File/index.vue";
import { ref } from "vue";
// 当前的目录
const pid = ref(1);

// 获取目录id
const getDirID = (id: number) => {
  pid.value = id;
};
</script>

<style></style>
